				<div class="section">
                <script type="text/javascript">
					$(document).ready(function(e) {
                        $("#ok").click(function(){
							$val  = $("#keyword").val();
							$show = $("#user_show");
							$.ajax({
								"url"   : "<?php echo base_url();?>admin/answers/search",
								"type"  : "post",
								"data"  : "val="+$val,
								"acsync": false,
								success: function(result){
									$show.html(result)
								}
							});
						});
                    });
					function check(){ if(confirm('Are you sure ?')){ return true; }else{ return false; }}
				</script>
					<!--[if !IE]>start title wrapper<![endif]-->
					<div class="title_wrapper">
						<span class="title_wrapper_top"></span>
						<div class="title_wrapper_inner">
							<span class="title_wrapper_middle"></span>
							<div class="title_wrapper_content">
								<h2 class="menu_title">Manage answers</h2>
							</div>
						</div>
						<span class="title_wrapper_bottom"></span>
					</div>
					<!--[if !IE]>end title wrapper<![endif]-->
					
					<!--[if !IE]>start section content<![endif]-->
					<div class="section_content">
						<span class="section_content_top"></span>
						
						<div class="section_content_inner minheight">
                        	<div class="table_tabs_menu">
                            <ul class="table_tabs">
                            	<li><a href="#" name="tab1" class="selected"><span><span>List all</span></span></a></li>
								<li><a href="#" name="tab2"><span><span>Search</span></span></a></li>
								<li><a href="<?php echo base_url(); ?>admin/answers/add" name=""><span><span>Add new</span></span></a></li>
							</ul>
							<!--[if !IE]>start  tabs<![endif]-->
							<!--[if !IE]>end  tabs<![endif]-->
							</div>
							<!--[if !IE]>start table_wrapper<![endif]-->
							<div class="table_wrapper">	
							<div class="table_wrapper_inner" id="tab1">
                            <form action="" method="post" name="sac">
								<table cellpadding="0" cellspacing="0" width="905">
									<tbody><tr>
									  <th width="23">Stt.</th>
									  <th width="368">Title</th>
									  <th width="119">User</th>
                                      <th width="140">Like - dislike</th>
									  <th width="99">Status</th>
									  <th width="66">Actions</th>
									</tr>
								   <?php
                                    $stt = 0;
                                    if(isset($info) && $info != NULL){
                                        foreach($info as $items){
                                            $stt++;
                                            echo "<tr>";	
                                            echo "<td>$stt</td>";
                                            echo "<td>".$items['atitle']."</td>";
                                            echo "<td>".$items['username']."</td>";
                                            echo "<td>".$items['alike']." - ".$items['adislike']."</td>";
											if($items['astatus'] == 1){
												echo "<td><a href='".base_url()."admin/answers/active/$items[aid]/0'>Active</a></td>";
											}else{
												echo "<td><a href='".base_url()."admin/answers/active/$items[aid]/1'>Not active</a></td>";
											}
                                            echo "<td>";
												echo "<div class='actions_menu'><ul>";
													echo "<li><a href='".base_url()."admin/answers/update/$items[aid]/' class='edit'>Edit</a></li>";
													echo "<li><a href='".base_url()."admin/answers/del/$items[aid]/' class='delete' onclick='return check()'>Del</a></li>";
												echo "</ul></div>";
											echo "</td>";
                                            echo "</tr>";
                                        }
                                    }else{
                                        echo "<tr>";	
                                        echo "<td colspan='7'>No data</td>";
                                        echo "</tr>";
                                    }
									?>
								</tbody></table>
                            </form>
                            	<div id="pagination"><?php  echo $this->pagination->create_links();?></div>
							</div>
                            <div class="table_wrapper_inner" id="tab2">
                            	<div class="form_user">
                            	<form action="javascript:void(0)">
                                	<div class="form_items">
                                    	<div class="form_item_left">Title of question</div>
                                        <div class="form_item_right"><input type="text" id="keyword" size="35" /></div>
                                    </div>
                                    <div class="form_items">
                                    	<div class="form_item_left">&nbsp;</div>
                                        <div class="form_item_right"><input type="submit" id="ok" value="Tìm kiếm" class="padding" /></div>
                                    </div>
                                </form>
                                </div>
                                <div id="user_show"></div>
                            </div>
						</div>
							<!--[if !IE]>end table_wrapper<![endif]-->
						</div>
						<!--[if !IE]>start pagination<![endif]-->
							<div class="pagination_wrapper">
							<span class="pagination_top"></span>
							<div class="pagination_middle">
							<div class="pagination">
							</div>
							</div>
							<span class="pagination_bottom"></span>
							</div>
						<!--[if !IE]>end pagination<![endif]-->
						<span class="section_content_bottom"></span>
					</div>
					<!--[if !IE]>end section content<![endif]-->
				</div>